* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #0f0f1e;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

.loader-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 主旋转环 */
.spinner {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

.spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg at 50% 50%,
            #ff0055 0%,
            #0099ff 25%,
            #00ff99 50%,
            #ffcc00 75%,
            #ff0055 100%);
    filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

/* 内环 */
.inner-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #0f0f1e;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* 外环 */
.outer-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid #ff0055;
    border-right: 2px solid #0099ff;
    animation: rotate 3s linear infinite reverse;
}

/* 脉冲圆点 */
.pulse-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 4s linear infinite;
}

.pulse-dots::before,
.pulse-dots::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff99;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #00ff99, 0 0 20px #00ff99;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.pulse-dots::after {
    top: auto;
    bottom: 10px;
    background: #ffcc00;
    box-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00;
    animation-delay: 0.5s;
}

/* 加载文字 */
.loading-text {
    margin-top: 30px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loading-text::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

/* 背景装饰元素 */
.bg-element {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 85, 0.1) 0%, rgba(0, 153, 255, 0.05) 40%, transparent 70%);
    z-index: -1;
    animation: pulse-bg 4s ease-in-out infinite alternate;
}

/* 动画定义 */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.7;
    }

    100% {
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60% {
        content: '...';
    }

    80%,
    100% {
        content: '';
    }
}

@keyframes pulse-bg {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* 响应式调整 */
@media (max-width: 480px) {
    .loader-container {
        width: 150px;
        height: 150px;
    }

    .spinner {
        width: 90px;
        height: 90px;
    }

    .inner-ring {
        width: 60px;
        height: 60px;
    }

    .outer-ring {
        width: 105px;
        height: 105px;
    }

    .loading-text {
        font-size: 14px;
    }
}